#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
	int n,flag = 0;
	scanf("%d",&n);
	for(int i = 0;i<n;i++)
	{
		int x;
		scanf("%d",&x);
		if(x) flag = 1;
	}
	if(flag) printf("HARD\n");
	else printf("EASY\n");
}
